﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using CoreLibrary.Service;
using Entities.DataBase.Obj;

namespace WebService.Service {

    [ServiceContract]
    public interface IUserServiceX {

        [OperationContract]
        [FaultContract(typeof(ServiceError))]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "/ListUsers")]
        List<UserInfo> ListUsers(string passport);

        [OperationContract]
        [FaultContract(typeof(ServiceError))]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "/GetUserInfo")]
        UserInfo GetUserInfo(string passport, string userId);
    }
}
